<if condition="$smarty.request.is_ajax neq 1">
<include file="inc:header" />	
<div class="page" id='{$data.act}'>
<?php
	$this->_var['back_url'] = wap_url("index","uc_center#index");
	$this->_var['back_page'] = "#uc_center";
	$this->_var['back_epage'] = $_REQUEST['epage']=="" ? "#uc_center" : "#".$_REQUEST['epage'];
?>
<include file="inc:title" />
<div class="content infinite-scroll "  data-distance="{$data.rs_count}" now_page="1">
<!-- 这里是页面内容区 -->
<!--我的借款-->

<div class="{$data.act}-box"  all_page="{$data.page.page_total}" ajaxurl="{:U('ucborrowed/index',array('status'=>$data.status))}">
	<div class="blank15"></div>
	<div class="choose">
		<table>
			<tr>
				<th <if condition="$data.status eq 0">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>0))}','#Ucborrowed','.{$data.act}-box')">全部</a></th>
				<th <if condition="$data.status eq 1">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>1))}','#Ucborrowed','.{$data.act}-box')">进行中</a></th>
				<th <if condition="$data.status eq 2">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>2))}','#Ucborrowed','.{$data.act}-box')">还款中</a></th>
				<th <if condition="$data.status eq 3">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>3))}','#Ucborrowed','.{$data.act}-box')">已还清</a></th>
				<th <if condition="$data.status eq 4">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>4))}','#Ucborrowed','.{$data.act}-box')">满标</a></th>
				<th <if condition="$data.status eq 5">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucborrowed/index',array('status'=>5))}','#Ucborrowed','.{$data.act}-box')">流标</a></th>
			</tr>
		</table>
	</div>
	<div class="blank15"></div>

	<ul class="detail_list invest">
		</if>
		<foreach name="data.item" item="deal">
		  <if condition="$deal.deal_status neq 4">
		    <li>
			<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0">
			<div class="h clearfix b_3b95d3">
				<span class="Status">进行中</span>
				<div class="bor clearfix">
					<span class="name f_l">{$deal.name}</span>
				</div>
			</div>
			</if>
			<if condition="$deal.deal_status eq 2">
			<div class="h clearfix b_ff6f6f">
				<span class="Status">满标</span>
				<div class="bor clearfix">
					<span class="name f_l">{$deal.name}</span>
				</div>
			</div>
			</if>	
			<if condition="$deal.deal_status eq 3 ">
			<div class="h clearfix b_b0b0b0">
				<span class="Status">流标</span>
				<div class="bor clearfix">
					<span class="name f_l">{$deal.name}</span>
				</div>
			</div>
			</if>
			<if condition="$deal.deal_status eq 1 and $deal.remain_time lte 0">
			<div class="h clearfix b_b0b0b0">
				<span class="Status">已过期</span>
				<div class="bor clearfix">
					<span class="name f_l">{$deal.name}</span>
				</div>
			</div>
			</if>
			<if condition="$deal.deal_status eq 5">
			<div class="h clearfix b_a4ce1c">
				<span class="Status">已还清</span>
				<div class="bor clearfix">
					<span class="name ">{$deal.name}</span>
					<a target="_blank" class="f_r" href="{$deal.agree_url}">查看电子协议</a>
				</div>
			</div>
			</if>
			<if condition="$deal.deal_status eq 0">
			<div class="h clearfix b_3b95d3">
				<span class="Status">待审核</span>
				<div class="bor clearfix">
					<span class="name ">{$deal.name}</span>
				</div>
			</div>
			</if>		
			<div class="bor_1">
				<div class="middle clearfix">
					<table>
						<tr>
							<td>
								<span class="name">金额</span>
								<span>{$deal.borrow_amount_format}</span>
							</td>
							<td>
								<span class="name">年利率</span>
								<span class="c_ff8800">{$deal.rate_foramt_w}</span>
							</td>
							<td>
								<span class="name">期限</span>
								<span>{$deal.repay_time}<if condition="$deal.repay_time_type eq 0">天<else/>个月</if></span>
							</td>
							<td>
								<div  class="progress-radial_parent ">
							<div class="progress-radial  progress-{$deal.progress_point|round='f=0'}
							<if condition="$deal.is_wait eq 1"></div> c999999
			            	<else/>
							<if condition="$deal.deal_status eq 0">  c999999 </if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0">  c56b1ea </if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time lte 0">  c999999 </if>
							<if condition="$deal.deal_status eq 2">  ea544a </if>
							<if condition="$deal.deal_status eq 3">  c999999  </if>
							<if condition="$deal.deal_status eq 4">  c66d191  </if>
							<if condition="$deal.deal_status eq 5">  c999999  </if>
							</if>
							"><b></b></div>
						</div>
					</div>
						 </td>
						</tr>
					</table>
				</div>
				<div class="bottom clearfix">
					<span class="time">发布日期 &nbsp; {$deal.start_time|to_date="Y-m-d"}</span>
					<div class="f_r">
						<a href="#" onclick="RouterURL('{:U('dealmobile/index',array('id'=>$deal.id))}','#Dealmobile',2)" class="but_c c_aad421 bor_aad421">标的详情</a>
					<if condition="$deal.deal_status eq 5">
						<a href="#" onclick="RouterURL('{:U('ucrefunddetail/index',array('id'=>$deal.id))}','#Ucrefunddetail',2)" class="but_c bor_3b95d3 c_3b95d3">还款详情</a>
					</if>
					</div>
					
			   </div>
			</div>
		</li>
		<else/>
		<li>
			<div class="h clearfix b_ff8800">
				<span class="Status">还款中</span>
				<div class="bor clearfix">
					<span class="name f_l">{$deal.name}</span>
                    <a target="_blank" class="f_r" href="{$deal.agree_url}">查看电子协议</a>
				</div>
			</div>
			<div class="bor_1">
				<div class="middle clearfix">
				      <ul class="list">
				      	<li><span class="name">借款金额</span>{$deal.borrow_amount_format}</li>
						<li><span class="name">年利率</span><span class="c_ff8800">{$deal.rate}%</span></li>
						<li><span class="name">已还本息</span>{function name="app_conf" v="CURRENCY_UNIT"}{$deal.repay_money|number_formatf=2}</li>
						<li><span class="name">罚息</span>{function name="app_conf" v="CURRENCY_UNIT"}{$deal.impose_money|number_format=2}</li>
						<li><span class="name">本期还款</span>
						<if condition="(int)$deal.end_repay_time eq (int)$deal.next_repay_time">
	                	{CURRENCY_UNIT｜app_conf}{$deal.true_last_month_repay_money|number_format=2}
						<else/>
						{CURRENCY_UNIT|app_conf}{$deal.true_month_repay_money|number_format=2}
						</if>
						</li>
						<li><span class="name">期限</span>{$deal.repay_time}<if condition="$deal.repay_time_type eq 0">天<else/>月</if></li>
				      </ul>
				</div>
				<div class="bottom clearfix">
					<span class="time"><if condition="(int)$deal.end_repay_time eq (int)$deal.next_repay_time">还款日<else/>下一还款日</if> &nbsp; {$deal.next_repay_time_format}</span>
                    <if condition="$deal.ips_bill_no eq ''">
					<a href="#" onclick="RouterURL('{:U('ucinrepayrefund/index',array('id'=>$deal.id))}','#Ucinrepayrefund',2)" class="but_c c_aad421 bor_aad421 " data-id="{$deal.id}">提前还款</a>
                    </if>
					<a href="#" onclick="RouterURL('{:U('ucquickrefund/index',array('id'=>$deal.id))}','#Ucquickrefund',2)" class="but_c bor_3b95d3 c_3b95d3">还款详情</a>
					
			   </div>
			</div>
		</li>	
		</if>
		</foreach>
	<if condition="$smarty.request.is_ajax neq 1">
	</ul>	
	<div class="blank15"></div>
</div>
<!-- 加载提示符 -->
<div class="infinite-scroll-preloader">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />
</if>



